﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using IndignadoFramework.BackBone.Model;
using IndignadoFramework.BackBone.InternalServices;
using IndignadoFramework.BackBone.InternalServices.Implementacion;

namespace IndignadoFramework.FrontOffice.Models
{
    public class SiteProvider : ISiteProvider
    {
       
        private MovementModel _site;

        static SiteProvider()
        {
        }

        #region ISiteProvider Members

        public bool Initialise(string host)
        {
            MovimientoServices ms = new MovimientoServicesImpl();
            _site = ms.getMovimiento(host);
            if (_site == null)
                return false;
            else
                return true;
        }

        public MovementModel GetCurrentSite()
        {
            return _site;
        }

        #endregion
    }
}